<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
   <t:base type="jquery,easyui,tools,DatePicker"></t:base> 
 </head>
 <body>
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="teachCourseFastArrangeController.do?doCourseScheduleUpdate" tiptype="3" >
		<input type="hidden" name="id" value="${obj.id }"/>
		<table style="" cellpadding="0" cellspacing="1" class="formtable">
			<tr>
	 				<td align="right">
	 					<label class="Validform_label"> 学期: </label>
					</td>
					<td class="value">
						<t:CommonSelect url="semesterInfoController.do?select"
						 value='${obj.semester}' name="semester" textField="semesterName" idField="semesterName"></t:CommonSelect>						
						<span class="Validform_checktip"></span> 
						<label class="Validform_label"	style="display: none;">学期</label>
					</td>
 			</tr>
 			<tr>
				<td align="right">
						<label class="Validform_label">
							班级:
						</label>
				</td>
				<td class="value"> 
					     <input id="className"  type="text" style="width: 150px" class="inputxt" 
					       datatype="*" name="className" value="${obj.grade.className }" >
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">班级</label>
						
				</td>
					
			</tr>
			<tr>
 				<td>
 					<label class="Validform_label"> 课程名称: </label>
				</td>
				<td class="value">
					<input id="lessonId" name="lessonId" type="hidden"  value='${obj.lessonInfo.id }'>               
					<input id="lessonName"  type="text" style="width: 150px" class="inputxt" 
					      readonly="readonly" datatype="*" value="${obj.lessonInfo.lessonName }">
					<t:choose hiddenName="lessonId" hiddenid="id" url="lessonInfoController.do?goSelect" name="lessonList"
                          icon="icon-search" title="选择" textname="lessonName" isclear="false" isInit="true"  ></t:choose>
					<span class="Validform_checktip"></span> 
					<label class="Validform_label"	style="display: none;"> 课程名称</label>
				</td>
 			</tr>
 			
 			<tr>
				<td align="right">
						<label class="Validform_label">
							实验项目:
						</label>
				</td>
				<td class="value"> 
                	    <input id="teachItemId" name="teachItemId" type="hidden" value="${obj.teachItem.id }">               
					     <input id="itemName"  type="text" style="width: 150px" class="inputxt" 
					      readonly="readonly"  datatype="*" value="${obj.teachItem.itemName }">
					     <t:choose hiddenName="teachItemId" hiddenid="id" url="dictTeachItemController.do?goSelect" name="groupList"
                          icon="icon-search" title="选择" textname="itemName" isclear="false" isInit="true"  ></t:choose> 
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">实验项目</label>
						
				</td>
					
			</tr>
 			
 			<tr>
				<td align="right">
						<label class="Validform_label">
							任课教师:
						</label>
				</td>
				<td class="value"> 
                	     <input id="teacherId" name="teacherId" type="hidden"  value='${obj.teacher.id }'>               
					     <input id="realName"  type="text" style="width: 150px" class="inputxt" 
					      readonly="readonly" datatype="*" value='${obj.teacher.teacherName }'>
					     <t:choose hiddenName="teacherId" hiddenid="id" url="teacherController.do?goSelect" name="teacherList"
                          icon="icon-search" title="选择" textname="realName" isclear="false" isInit="true"  ></t:choose>
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">任课教师</label>
						
				</td>
					
			</tr>
			<tr>
				<td align="right">
						<label class="Validform_label">
							实验室:
						</label>
				</td>
				<td class="value"> 
                	     <input id="labId" name="labId" type="hidden" value='${obj.lab.id }'>               
					     <input id="labName"  type="text" style="width: 150px" class="inputxt" 
					      readonly="readonly" value='${obj.lab.labName }'>
					     <t:choose hiddenName="labId" hiddenid="id" url="labController.do?goSelect" name="labList"
                          icon="icon-search" title="选择" textname="name"  inputTextname="labName" isclear="false" isInit="true"  ></t:choose>
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">实验室</label> 
				</td> 
			</tr>
			<tr>
				<td align="right"><label class="Validform_label">
						上课日期: </label>
				</td>
				<td class="value">
					<input id="courseDate" name="courseDate" type="text" style="width:150px;"  
						class="inputxt" value='<fmt:formatDate value="${obj.courseDate }" pattern="yyyy-MM-dd"/>'>   
					<span class="Validform_checktip"></span>
				    <label class="Validform_label" 	style="display: none;">上课日期</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label">
						上课节次: </label>
				</td>
				<td class="value">
					<input id="courseOrder" name="courseOrder" type="text" style="width:200px;" onkeypress="numberValidate()"
						class="inputxt"   maxlength="2" datatype="*" value="${obj.courseOrder }">   
					<span class="Validform_checktip"></span>
				    <label class="Validform_label" 	style="display: none;">上课节次</label>
				</td>
			</tr>
 			
			<tr>
				<td align="right"><label class="Validform_label">
						上课人数: </label>
				</td>
				<td class="value">
					<input id="peopleCount" name="peopleCount" type="text" style="width:200px;" onkeypress="numberValidate()"
						class="inputxt"   maxlength="3"  value="${obj.peopleCount }">   
					<span class="Validform_checktip"></span>
				    <label class="Validform_label" 	style="display: none;">人数</label>
				</td>
			</tr>
 			
			</table>
		</t:formvalid>
	<script type="text/javascript">
	 $(document).ready(function(){
	 		//给时间控件加上样式
	 		$("#courseDate").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	 }); 
 </script>
 </body>
